package com.sykj.springboot.test.designMode.strategyPattern;

/**
 * @author lining
 * @date 2022/5/30 10:48
 * @description 策略包
 **/
public class Context {

    private IStrategy strategy;

    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }

    public void operate(){
        strategy.operate();
    }
}
